
package com.trianing.java.cor.equal;

public class EqualDemo {

	public static void main(String[] args) {

		String Firstname1=new String("Sam");
		String Firstname2=new String("Sam");
		
		Car car1=new Car("abc", "Ford", "XL");
		Car car2=new Car("abc", "Camry", "XL");
		
		
		boolean equals=(car1.equals(car2));
		
		System.out.println("Are Objects Are Equals :- "+equals);
	}

	
}
